package ccapp.gui;

import java.awt.Dimension;
import java.awt.event.ActionListener;

import javax.swing.BoxLayout;
import javax.swing.JButton;

import frmsystem.gui.TransactionButtonPanel;

public class CardTransactionGUI extends TransactionButtonPanel {
	
	private JButton btnTransaWithdraw;
	
	public CardTransactionGUI(int width, int height){
		layout = new BoxLayout(this, BoxLayout.Y_AXIS);
		setLayout(layout);
		
		btnTransaction = new JButton("Charge");
		add(btnTransaction);
		
		btnTransaWithdraw = new JButton("Deposit");
		add(btnTransaWithdraw);
		
		btnExit = new JButton("Exit");
		add(btnExit);
		setSize(new Dimension(width, height));
	}
	
	public void addDepositActionListener(ActionListener al){
		this.btnTransaWithdraw.addActionListener(al);
	}

}
